/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.cmc.service.merchant.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * This class is used by SOAP remote services, specifically {@link com.cmc.service.merchant.service.http.AgentEntryServiceSoap}.
 *
 * @author    ntcuong1
 * @see       com.cmc.service.merchant.service.http.AgentEntryServiceSoap
 * @generated
 */
public class AgentEntrySoap implements Serializable {
	public static AgentEntrySoap toSoapModel(AgentEntry model) {
		AgentEntrySoap soapModel = new AgentEntrySoap();

		soapModel.setAgentId(model.getAgentId());
		soapModel.setCreatorUserId(model.getCreatorUserId());
		soapModel.setCompanyId(model.getCompanyId());
		soapModel.setCreateDate(model.getCreateDate());
		soapModel.setModifiedDate(model.getModifiedDate());
		soapModel.setType(model.getType());
		soapModel.setCode(model.getCode());
		soapModel.setFirstName(model.getFirstName());
		soapModel.setMiddleName(model.getMiddleName());
		soapModel.setLastName(model.getLastName());
		soapModel.setPrefixId(model.getPrefixId());
		soapModel.setSuffixId(model.getSuffixId());
		soapModel.setMale(model.getMale());
		soapModel.setBirthdayMonth(model.getBirthdayMonth());
		soapModel.setBirthdayYear(model.getBirthdayYear());
		soapModel.setBirthdayDay(model.getBirthdayDay());
		soapModel.setJobTitle(model.getJobTitle());
		soapModel.setEmail(model.getEmail());
		soapModel.setMerchantId(model.getMerchantId());
		soapModel.setLoginable(model.getLoginable());
		soapModel.setUserId(model.getUserId());
		soapModel.setScreenName(model.getScreenName());

		return soapModel;
	}

	public static AgentEntrySoap[] toSoapModels(AgentEntry[] models) {
		AgentEntrySoap[] soapModels = new AgentEntrySoap[models.length];

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModel(models[i]);
		}

		return soapModels;
	}

	public static AgentEntrySoap[][] toSoapModels(AgentEntry[][] models) {
		AgentEntrySoap[][] soapModels = null;

		if (models.length > 0) {
			soapModels = new AgentEntrySoap[models.length][models[0].length];
		}
		else {
			soapModels = new AgentEntrySoap[0][0];
		}

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModels(models[i]);
		}

		return soapModels;
	}

	public static AgentEntrySoap[] toSoapModels(List<AgentEntry> models) {
		List<AgentEntrySoap> soapModels = new ArrayList<AgentEntrySoap>(models.size());

		for (AgentEntry model : models) {
			soapModels.add(toSoapModel(model));
		}

		return soapModels.toArray(new AgentEntrySoap[soapModels.size()]);
	}

	public AgentEntrySoap() {
	}

	public long getPrimaryKey() {
		return _agentId;
	}

	public void setPrimaryKey(long pk) {
		setAgentId(pk);
	}

	public long getAgentId() {
		return _agentId;
	}

	public void setAgentId(long agentId) {
		_agentId = agentId;
	}

	public long getCreatorUserId() {
		return _creatorUserId;
	}

	public void setCreatorUserId(long creatorUserId) {
		_creatorUserId = creatorUserId;
	}

	public long getCompanyId() {
		return _companyId;
	}

	public void setCompanyId(long companyId) {
		_companyId = companyId;
	}

	public Date getCreateDate() {
		return _createDate;
	}

	public void setCreateDate(Date createDate) {
		_createDate = createDate;
	}

	public Date getModifiedDate() {
		return _modifiedDate;
	}

	public void setModifiedDate(Date modifiedDate) {
		_modifiedDate = modifiedDate;
	}

	public String getType() {
		return _type;
	}

	public void setType(String type) {
		_type = type;
	}

	public String getCode() {
		return _code;
	}

	public void setCode(String code) {
		_code = code;
	}

	public String getFirstName() {
		return _firstName;
	}

	public void setFirstName(String firstName) {
		_firstName = firstName;
	}

	public String getMiddleName() {
		return _middleName;
	}

	public void setMiddleName(String middleName) {
		_middleName = middleName;
	}

	public String getLastName() {
		return _lastName;
	}

	public void setLastName(String lastName) {
		_lastName = lastName;
	}

	public int getPrefixId() {
		return _prefixId;
	}

	public void setPrefixId(int prefixId) {
		_prefixId = prefixId;
	}

	public int getSuffixId() {
		return _suffixId;
	}

	public void setSuffixId(int suffixId) {
		_suffixId = suffixId;
	}

	public boolean getMale() {
		return _male;
	}

	public boolean isMale() {
		return _male;
	}

	public void setMale(boolean male) {
		_male = male;
	}

	public int getBirthdayMonth() {
		return _birthdayMonth;
	}

	public void setBirthdayMonth(int birthdayMonth) {
		_birthdayMonth = birthdayMonth;
	}

	public int getBirthdayYear() {
		return _birthdayYear;
	}

	public void setBirthdayYear(int birthdayYear) {
		_birthdayYear = birthdayYear;
	}

	public int getBirthdayDay() {
		return _birthdayDay;
	}

	public void setBirthdayDay(int birthdayDay) {
		_birthdayDay = birthdayDay;
	}

	public String getJobTitle() {
		return _jobTitle;
	}

	public void setJobTitle(String jobTitle) {
		_jobTitle = jobTitle;
	}

	public String getEmail() {
		return _email;
	}

	public void setEmail(String email) {
		_email = email;
	}

	public long getMerchantId() {
		return _merchantId;
	}

	public void setMerchantId(long merchantId) {
		_merchantId = merchantId;
	}

	public boolean getLoginable() {
		return _loginable;
	}

	public boolean isLoginable() {
		return _loginable;
	}

	public void setLoginable(boolean loginable) {
		_loginable = loginable;
	}

	public long getUserId() {
		return _userId;
	}

	public void setUserId(long userId) {
		_userId = userId;
	}

	public String getScreenName() {
		return _screenName;
	}

	public void setScreenName(String screenName) {
		_screenName = screenName;
	}

	private long _agentId;
	private long _creatorUserId;
	private long _companyId;
	private Date _createDate;
	private Date _modifiedDate;
	private String _type;
	private String _code;
	private String _firstName;
	private String _middleName;
	private String _lastName;
	private int _prefixId;
	private int _suffixId;
	private boolean _male;
	private int _birthdayMonth;
	private int _birthdayYear;
	private int _birthdayDay;
	private String _jobTitle;
	private String _email;
	private long _merchantId;
	private boolean _loginable;
	private long _userId;
	private String _screenName;
}